package cn.zucc.edu.handyzucc.dao;

import cn.zucc.edu.handyzucc.entity.Event;
import cn.zucc.edu.handyzucc.entity.EventReg;
import cn.zucc.edu.handyzucc.entity.EventRegExtend;

import java.util.List;

public interface EventDao {
    List<Event> getAllEvents ();
    Event getEventDetailById(Integer event_id);
    int eventReg(EventReg eventReg);
    EventReg eventAlreadyReg(Integer eventreg_event, Integer eventreg_user);

    int addEvent(Event event);
    int deleteEvent(Integer event_id);
    int updateEvent(Event event);
    List<EventRegExtend> getEventReg(Integer event_id);
}
